package com.store.util;


/**
 * 生成随机数工具类
 **/
public class RandomUtil {

    /**
     * 随机数生成
     * @return
     */
    private static final String setRandom(){
        StringBuilder sb = new StringBuilder();
        int num = 0;
        for(int i=0;i<5;i++){
            num = (int) (Math.random()*10);
            sb.append(num);
        }
        return sb.toString();
    }

    /**
     * 随机数获取
     * @return
     */
    public static final String getRandom(){
        return setRandom();
    }
}
